package com.cloud.point.designPattern.decorator.decoratorCategory;

import com.cloud.point.designPattern.decorator.Weapon;
import com.cloud.point.designPattern.decorator.WeaponDecorator;

import java.io.Serializable;

/**
 * @author 24373
 * @description
 * @date 2024/3/30 16:39
 */
public class RedDiamond implements WeaponDecorator, Serializable {

    private Weapon weapon;

    public RedDiamond(Weapon weapon) {
        this.weapon = weapon;
    }

    @Override
    public int damage() {
        return this.weapon.damage() + 100;
    }
}
